package com.cmc.cloud.cmclink.doc.vo.sovo.basicconfgvo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户自定义信息 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class BasicConfigBaseVO {

    @Schema(description = "自定义代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{basicconfig.code.notblank}")
    @Length(max = 50, message = "{basicconfig.code.length}")
    private String code;

    @Schema(description = "定义数据作用类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{basicconfig.codedefine.notblank}")
    @Length(max = 50, message = "{basicconfig.codedefine.length}")
    private String codeDefine;

    @Schema(description = "根据用户特定需求，自行定义标签")
    @Length(max = 50, message = "{basicconfig.customtag.length}")
    private String customtag;

    @Schema(description = "港口代码，用于自定义code使用范围")
    @Length(max = 5, message = "{basicconfig.portcd.length}")
    private String portCd;

    @Schema(description = "备注", example = "你猜")
    @Length(max = 200, message = "{basicconfig.remark.length}")
    private String remark;

    @Schema(description = "航线代码")
    @Length(max = 50, message = "{basicconfig.lanecode.length}")
    private String laneCode;

    @Schema(description = "船舶经营人代码")
    @Length(max = 50, message = "{basicconfig.vesseloperatorcode.length}")
    private String vesselOperatorCode;

    @Schema(description = "是否可用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{basicconfig.enable.notnull}")
    private Boolean enable;

}
